﻿#pragma once

#include <QDialog>
#include "ui_StrategyOptionUI.h"
#include "StrategyManager.h"

// 策略配置界面
class StrategyOptionUI : public QDialog
{
	Q_OBJECT

public:
	StrategyOptionUI(const QStringList &pSymbolList, QWidget *parent = Q_NULLPTR);
	~StrategyOptionUI();
private slots:
	void saveOption();
private:
	void initUI(const QStringList &pSymbolList);
	// 返回策略名称
	QString getStrategyName(const QString &pSymbolName);
	// 获取所有的策略
	void getAllStrategies(QStringList &outList);

	Ui::StrategyOptionUI ui;

	StrategyManager m_manager;
};
